package com.chanzany.visitor.case2;

import lombok.Getter;
import lombok.Setter;

//抽象元素角色类
@Setter
@Getter
public abstract class Animal {
    private String name;
    //接受访问者访问的功能
    abstract void accept(Person p);
}
